<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:t="http://myfaces.apache.org/tomahawk"
		xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
	>

<h:head >

  <h:outputStylesheet name="css/screen.css"   />
</h:head>

<h:form id="j_spring_security_check" >

	<div style="padding: 300px; width:300px ">
		<h:panelGrid columns="3">
			<div style="float: left; " >
				<h:outputLabel for="userName" value="Login " />
				<h:inputText id="userName" value="#{loginBean.userName}" />
			</div >
			<div style="float: left; " >
				<h:outputLabel for="password" value="Senha " />
				<h:inputText id="password" value="#{loginBean.password}" />
			</div>
			<h:outputText value="" />
			<a4j:commandButton id="login" render="erroAcesso" action="#{loginBean.login}" value="Ok"  />	
	 	</h:panelGrid>
	 			
			<div style="float: left" id="errorMessage" >
				<h:message id="erroAcesso" errorClass="errorMessage" for="login"></h:message>
			</div>
	
	</div>
</h:form>
</html>

